class BaseResponse {
  String? msg;
  int code;

  BaseResponse(this.msg, this.code);

  factory BaseResponse.fromMap(Map<String, dynamic> map) {
    return BaseResponse(map['msg'], map['code']);
  }

  bool get isSuccess {
    return code == 0;
  }
}
